import request from '@/utils/request'

// 查询路线明细列表
export function listPathDetail(query) {
  return request({
    url: '/waitress/PathDetail/list',
    method: 'get',
    params: query
  })
}

// 查询路线明细详细
export function getPathDetail(id) {
  return request({
    url: '/waitress/PathDetail/' + id,
    method: 'get'
  })
}

// 新增路线明细
export function addPathDetail(data) {
  return request({
    url: '/waitress/PathDetail',
    method: 'post',
    data: data
  })
}

// 修改路线明细
export function updatePathDetail(data) {
  return request({
    url: '/waitress/PathDetail',
    method: 'put',
    data: data
  })
}

// 删除路线明细
export function delPathDetail(id) {
  return request({
    url: '/waitress/PathDetail/' + id,
    method: 'delete'
  })
}

// 导出路线明细
export function exportPathDetail(query) {
  return request({
    url: '/waitress/PathDetail/export',
    method: 'get',
    params: query
  })
}